/**
 * 
 */
package com.ybxx.core.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * <p>Title:</p>
 * <p>Description: </p>
 * <P>Copyright: Copyright (c) 2010-2015</P>
 * <P>Company: XA.Co.LTD</P>
 * @author:姚强
 * @version 1.0
 */
public class CharSetUtil {
	//参数格式：var sname=encodeURI(encodeURI($("#sname").val()));
	public static String ISO8859ConvertUTF(String source){
		String dest="";
		try {
			dest=URLDecoder.decode(URLDecoder.decode(source,"UTF-8"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}finally{
			return dest;
		}
	}
}

